function check_name() {
    var subbtn = document.getElementById("subbtn");
    subbtn.disabled = false;
    subbtn.onclick = function () {
        var r_name = document.getElementById("r_name");
        var r_phone = document.getElementById("r_phone");
        if (r_name.value.replace(/\s+/g, '') == "") {
            alert("请输入姓名");
            return false;
        }
        var regex = /^1[3-9]\d{9}$/;
        if (!regex.test(r_phone.value)) {
            alert("请输入正确的手机号！");
            return false;
        }
    }
}

function check_phone() {
    var subbtn = document.getElementById("subbtn");
    subbtn.disabled = false;
    subbtn.onclick = function () {
        var r_name = document.getElementById("r_name");
        var r_phone = document.getElementById("r_phone");
        if (r_name.value.replace(/\s+/g, '') == "") {
            alert("请输入姓名");
            return false;
        }
        var regex = /^1[3-9]\d{9}$/;
        if (!regex.test(r_phone.value)) {
            alert("请输入正确的手机号！");
            return false;
        }
    }
}

function check_pwd() {
    var r_new_pwd = document.getElementById("r_new_pwd");
    var ren_new_pwd = document.getElementById("ren_new_pwd");
    if (r_new_pwd.value != ren_new_pwd.value) {
        alert("两次密码输入不一致！");
        return false;
    }
}